package SingleObject;
public class SingletonPatternDemo {
    public static void main(String[] args) {
        //获取唯一可用的对象
        SingleObject  o= SingleObject.getInstance();
        //显示消息
        o.showMessage();
    }

}